package com.mr.api;

import com.mr.pojo.User;
import org.springframework.web.bind.annotation.*;

/**
 * @ClassName UserApi
 * @Description: TODO
 * @Author kun
 * @Date 2020/8/26
 * @Version V1.0
 **/
@RequestMapping
public interface UserApi {


    @GetMapping("check/{data}/{type}")
    public Boolean check(@PathVariable("data") String data,
                                         @PathVariable("type") Integer type);

    @PostMapping("register")
    public Void register(User user);

    @GetMapping("query")
    public User query(
            @RequestParam("username") String username,
            @RequestParam("password") String password);
}
